package com.example.designPatten.factory.factoryMethod;

/**
 * Created by com on 16/3/22.
 */
public abstract class PizzaStore {

    public Pizza orderPizza(){
        Pizza pizza;
        pizza =createPizza();

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }

    public abstract Pizza createPizza();

}
